<?php
    //获得当前的模块名称
    $name = "index";
    if (isset($_SERVER['PATH_INFO'])) 
    {
        $pathInfo = explode("/",trim($_SERVER['PATH_INFO'], "/"));

        if(isset($pathInfo[0]) && !empty($pathInfo[0]))
        {
            $name = $pathInfo[0];
        }
    }

    define('LOCA_ACTION_NAME', ucfirst($name));
    require 'ThinkPHP/ThinkPHP.php';
?>